﻿
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Oliving.Edge.Model.Models.XLT
{
    ///<summary>
    ///设备类型表
    ///</summary> 

    [SugarTable("Base_EquipmentCategory")]
    [Serializable]
    public class Base_EquipmentCategory
    {
        public Base_EquipmentCategory()
        {
        }

        /// <summary> 
        /// Desc:编号 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(IsPrimaryKey = true, ColumnName = "CategoryId", ColumnDescription = "编号", Length = 50, ColumnDataType = "nvarchar")]
        public string CategoryId { get; set; } = Guid.NewGuid().ToString();

        /// <summary> 
        /// Desc:项目ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ProjectId", ColumnDescription = "项目ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ProjectId { get; set; }

        /// <summary> 
        /// Desc:类型名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CategoryName", ColumnDescription = "类型名称", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CategoryName { get; set; }

        /// <summary> 
        /// Desc:是否登记运行 1=登记 0=不登记 
        /// Default:((0)) 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(ColumnName = "IsRunningLog", ColumnDescription = "是否登记运行 1=登记 0=不登记")]
        public int IsRunningLog { get; set; }

        /// <summary> 
        /// Desc:运行表单 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "RunningLogFrom", ColumnDescription = "运行表单", IsNullable = false, Length = 50, ColumnDataType = "nvarchar")]
        public string RunningLogFrom { get; set; }

        /// <summary> 
        /// Desc:是否登记维护 1=登记 0=不登记 
        /// Default:((0)) 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(ColumnName = "IsServiceLog", ColumnDescription = "是否登记维护 1=登记 0=不登记")]
        public int IsServiceLog { get; set; }

        /// <summary> 
        /// Desc:维护表单 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ServiceLogFrom", ColumnDescription = "维护表单", IsNullable = false, Length = 50, ColumnDataType = "nvarchar")]
        public string ServiceLogFrom { get; set; }

        /// <summary> 
        /// Desc:是否登记保养 1=登记 0=不登记 
        /// Default:((0)) 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(ColumnName = "IsMaintenanceLog", ColumnDescription = "是否登记保养 1=登记 0=不登记")]
        public int IsMaintenanceLog { get; set; }

        /// <summary> 
        /// Desc:保养表单 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "MaintenanceLogFrom", ColumnDescription = "保养表单", IsNullable = false, Length = 50, ColumnDataType = "nvarchar")]
        public string MaintenanceLogFrom { get; set; }

        /// <summary> 
        /// Desc:软删除 0未删除，1 已删除 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "DeleteMark", ColumnDescription = "软删除 0未删除，1 已删除", IsNullable = true)]
        public int? DeleteMark { get; set; }

        /// <summary> 
        /// Desc:排序 排序 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序 排序", IsNullable = true)]
        public int? SortCode { get; set; }

        /// <summary> 
        /// Desc:是否启用 0未启用，1启用 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Enabled", ColumnDescription = "是否启用 0未启用，1启用", IsNullable = true)]
        public int? Enabled { get; set; }

        /// <summary> 
        /// Desc:填报时间 创建时间 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateDate", ColumnDescription = "填报时间 创建时间", IsNullable = true)]
        public DateTime? CreateDate { get; set; }

        /// <summary> 
        /// Desc:填报用户ID 创建的用户ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateUserID", ColumnDescription = "填报用户ID 创建的用户ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CreateUserID { get; set; }

        /// <summary> 
        /// Desc:创建的用户名称 创建的用户名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateUserName", ColumnDescription = "创建的用户名称 创建的用户名称", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CreateUserName { get; set; }

        /// <summary> 
        /// Desc:最后一次修改时间 修改日期 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyDate", ColumnDescription = "最后一次修改时间 修改日期", IsNullable = true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary> 
        /// Desc:修改用户编号 修改用户编号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyUserId", ColumnDescription = "修改用户编号 修改用户编号", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ModifyUserId { get; set; }

        /// <summary> 
        /// Desc:修改的用户姓名 修改的用户姓名 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyUserName", ColumnDescription = "修改的用户姓名 修改的用户姓名", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ModifyUserName { get; set; }

    }

}
